#!/bin/bash


echo "To correct the bias"

listfordarkcorr=$1 
DARK=$2

if [ $# -ne 2  ]
then
	echo "usage: xdarkcorr_list.sh listaaa Dark.fit"
	exit 0
fi

for fitfile in `cat $listfordarkcorr`
do
#	echo $fitfile
	xdarkcorr.sh $fitfile $DARK
done
echo "xdarkcorr_list.sh is over"
